#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;


int main()
{
	string s1("11111");
	string base = "The quick brown fox jumps over a lazy dog.";
	//s1.assign()

	s1.assign(base);
	cout << s1 << endl;

	s1.assign("abcdef", 3,-1);
	cout << s1 << endl;


	return 0;
}